package com.fram.mapper;

import java.util.List;

import com.fram.bean.admin.volume.response.PaperResponse;
import com.fram.bean.admin.volume.response.UserAnswerResponse;
import com.fram.entity.VolumeAnswer;
/**
 * @author Administrator
 * 回答表(全部信息 提交到这里)
 */
public interface VolumeAnswerMapper {
    int deleteByPrimaryKey(Long id);

    int insert(VolumeAnswer record);

    int insertSelective(VolumeAnswer record);

    VolumeAnswer selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(VolumeAnswer record);

    int updateByPrimaryKey(VolumeAnswer record);
    
    int insertSelectiveByList(List<VolumeAnswer> record);
   
    //根据（用户id）以及 （版本）   查询所有 问题
    List<UserAnswerResponse> selectByUserId (VolumeAnswer request);
    
    /**后台 - 解答列表**/
    List<PaperResponse> selectByAnswer(VolumeAnswer request);
    
    VolumeAnswer selectByCount(VolumeAnswer request);
}